$OpenBSD: patch-libreofficekit_Executable_gtktiledviewer_mk,v 1.1 2015/05/03 11:30:33 robert Exp $
--- libreofficekit/Executable_gtktiledviewer.mk.orig.port	Sun May  3 12:39:56 2015
+++ libreofficekit/Executable_gtktiledviewer.mk	Sun May  3 12:40:23 2015
@@ -30,10 +30,10 @@ $(eval $(call gb_Executable_add_libs,gtktiledviewer,\
     -lICE \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Executable_add_libs,gtktiledviewer,\
     -lm \
-    -ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
     -lpthread \
 ))
 endif
